package service.impl;

import java.util.List;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import model.OrderModel;
import service.OrderService;

public class OrderServiceImpl implements OrderService {
	OrderDao dao=new OrderDaoImpl();
//	@Override
//	public OrderModel findById(int ordernum) throws Exception {
//		return dao.findById(ordernum);
//	}
//	@Override
//	public OrderModel findByName(String username) throws Exception {
//		return dao.findByName(username);
//	}
	@Override
	public List<OrderModel> findByName(String username) throws Exception {
		return dao.findByName(username);
	}
@Override
public List<OrderModel> findById(int ordernum) throws Exception {
	return dao.findById(ordernum);
}

}
